/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import play.db.jpa.Model;

/**
 *
 * @author alex
 */

@Entity
public class Reparto extends Model{
    private Actor actor;
    @ManyToOne
    private Pelicula pelicula;

    public Reparto() {
    }

    public Reparto(Actor actor, Pelicula pelicula) {
        this.actor = actor;
        this.pelicula = pelicula;
    }

}
